﻿@model BatsMVCPortal.Models.Topic

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Topic</legend>

        @Html.HiddenFor(model => model.TopicId)

        <div class="editor-label">
            @Html.LabelFor(model => model.BlogId, "Blog")
        </div>
        <div class="editor-field">
            @Html.DropDownList("BlogId", String.Empty)
            @Html.ValidationMessageFor(model => model.BlogId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserId)
            @Html.ValidationMessageFor(model => model.UserId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicType)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicType)
            @Html.ValidationMessageFor(model => model.TopicType)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicTitle)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicTitle)
            @Html.ValidationMessageFor(model => model.TopicTitle)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicTags)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicTags)
            @Html.ValidationMessageFor(model => model.TopicTags)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicDateAdd)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicDateAdd)
            @Html.ValidationMessageFor(model => model.TopicDateAdd)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicRating)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicRating)
            @Html.ValidationMessageFor(model => model.TopicRating)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicCountVote)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicCountVote)
            @Html.ValidationMessageFor(model => model.TopicCountVote)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicCountRead)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicCountRead)
            @Html.ValidationMessageFor(model => model.TopicCountRead)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicCountComment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicCountComment)
            @Html.ValidationMessageFor(model => model.TopicCountComment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicForbidComment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicForbidComment)
            @Html.ValidationMessageFor(model => model.TopicForbidComment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicTextShort)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicTextShort)
            @Html.ValidationMessageFor(model => model.TopicTextShort)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TopicTextSource)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TopicTextSource)
            @Html.ValidationMessageFor(model => model.TopicTextSource)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
